package com.loklok.confuse.extend;

import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public class VmFileType extends LanguageFileType {

    public static final VmFileType INSTANCE = new VmFileType();

    private VmFileType() {
        super(VmLanguage.INSTANCE);
    }

    @NotNull
    @Override
    public String getName() {
        return "Velocity Template";
    }

    @NotNull
    @Override
    public String getDescription() {
        return "Velocity template file";
    }

    @NotNull
    @Override
    public String getDefaultExtension() {
        return "vm";
    }

    @Nullable
    @Override
    public Icon getIcon() {
        return null; // 你可以返回一个自定义的图标
    }
}
